package com.service;

import com.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Date;

@FeignClient(value = "site", contextId = "complaintApiService")
public interface ComplaintApiService {

    @GetMapping("findAllComplaintBySiteIdAndComplaintStateAndPage")
    Result findAllComplaintBySiteIdAndComplaintStateAndPage(@RequestParam("complaintState") String complaintState,
                                                            @RequestParam("current") Integer current,
                                                            @RequestParam("pageSize") Integer pageSize);

    @PostMapping("setComplaintByComplaintId")
    Result setComplaintByComplaintId(@RequestParam("complaintResponse") String complaintResponse,
                                     @RequestParam("complaintId") Integer complaintId);


}
